package com.av.android;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

/**
 * @author mwho
 * 
 */
public class MemberActivity extends TabActivity {

	private TabHost mTabHost;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_member);
		mTabHost = getTabHost();
		TabSpec firstTabSpec = mTabHost.newTabSpec("tid1");
		TabSpec secondTabSpec = mTabHost.newTabSpec("tid2");

		firstTabSpec.setIndicator("Choose Location").setContent(
				new Intent(this, MapsActivity.class));
		secondTabSpec.setIndicator("Add Report").setContent(
				new Intent(this, ReportActivity.class));

		mTabHost.addTab(firstTabSpec);
		mTabHost.addTab(secondTabSpec);
	}
}
